<?php
namespace BP\Sys;

require_once("BP/En/Map.php");
class GEEntityExcelFrm extends EntityOID {
	public $FK_MapData;	// String
	protected $_Dtls;	// ArrayList
	private function __init() { // default class members
		$this->FK_MapData = NULL;
		$this->_Dtls = NULL;
	}
	public function getLastEditer () 
	{
		return $this->GetValStringByKey(GEEntityExcelFrmAttr::$LastEditer);
	}
	public function setLastEditer ($value) // [String value]
	{
		$this->SetValByKey(GEEntityExcelFrmAttr::$LastEditer, $value);
	}
	public function getRDT () 
	{
		return $this->GetValStringByKey(GEEntityExcelFrmAttr::$RDT);
	}
	public function setRDT ($value) // [String value]
	{
		$this->SetValByKey(GEEntityExcelFrmAttr::$RDT, $value);
	}
	public function getFilePath () 
	{
		return $this->GetValStringByKey(GEEntityExcelFrmAttr::$FilePath);
	}
	public function setFilePath ($value) // [String value]
	{
		$this->SetValByKey(GEEntityExcelFrmAttr::$FilePath, $value);
	}
	public function getPK () 
	{
		return "OID";
	}
	public function getPKField () 
	{
		return "OID";
	}
	public function toString () 
	{
		return $this->FK_MapData;
	}
	public function getClassID () 
	{
		return $this->FK_MapData;
	}
	public static function constructor__ () 
	{
		$me = new self();
		$me->__init();
		return $me;
	}
	public static function constructor__String ($fk_mapdata) // [String fk_mapdata]
	{
		$me = new self();
		$me->__init();
		$me->FK_MapData = $fk_mapdata;
		return $me;
	}
	public static function constructor__String_I ($fk_mapdata, $oid) // [String fk_mapdata, int oid]
	{
		$me = new self();
		$me->__init();
		$me->FK_MapData = $fk_mapdata;
		$me->setOID($oid);
		$i = $me->RetrieveFromDBSources();
		return $me;
	}
	public function getEnMap () 
	{
		if (($this->get_enMap() != NULL))
		{
			return $this->get_enMap();
		}
		if (($this->FK_MapData == NULL))
		{
			throw new \RuntimeException((("没有�?" . $this->FK_MapData) . "值，您不能获取它的Map�?"));
		}
		$this->set_enMap(MapData->GenerHisMap($this->FK_MapData));
		return $this->get_enMap();
	}
	public function getGetNewEntities () 
	{
		if (($this->FK_MapData == NULL))
		{
			return GEEntityExcelFrms::constructor__();
		}
		return GEEntityExcelFrms::constructor__String($this->FK_MapData);
	}
	public function getDtls () 
	{
		if (($this->_Dtls == NULL))
		{
			$this->_Dtls = [];// 
		}
		return $this->_Dtls;
	}
}
?>
